package com.heima.daoInterface;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.heima.tools.PageBean;

public interface IBaseDao<T> {
	public void save(T entity);
	public void update(T entity);
	public void delete(T entity);
	public void executeByNamedQuery(String query, Object...args);
	public T get(Serializable id);
	public T findByNamedQuery(String query, Object...args);
	public List<T> findAll();
	public List<T> findByCriteria(DetachedCriteria Criteria);
	public void pageBeanQuery(PageBean pageBean);
}
